package com.youxuan.job;

import com.youxuan.util.RedisCache;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;

@Component
@EnableScheduling
public class DemoJob {

//    @Scheduled(cron = "0/5 * * * * ?")
//    public void updateCount(){
//        System.out.println("每五秒执行一次");
//    }

}
